import request from '@/utils/request'
/**
 * 查询物料数据弹出框
 * @param list
 */
export function selectPageItem(data) {
  return request({
    url: `/md/commonBrowsers/selectPageItem`,
    method: 'post',
    data
  })
}
/**
 * 查询物料组数据弹出框
 * @param list
 */
export function selectPageItemGroup(data) {
  return request({
    url: `/md/commonBrowsers/selectPageItemGroup`,
    method: 'post',
    data
  })
}

/**
 * 通过载具类型查询数据
 * @param inquire
 */
export function inquireCarrierTypes(data) {
  return request({
    url: `/md/carrierTypes/query`,
    method: 'get',
    params: data
  })
}
/**
 * 保存
 * @param sitesSave
 */
export function saveCarrierTypes(data) {
  return request({
    url: `/md/carrierTypes/save`,
    method: 'post',
    data
  })
}

/**
 * 删除
 * @param delete
 */
export function deleteCarrierTypes(data) {
  return request({
    url: `/md/carrierTypes/delete`,
    method: 'get',
    params: data
  })
}
